package nju.edu.desserthouse.model;

import java.io.Serializable;

import javax.persistence.*;

/**
 * Entity implementation class for Entity: Shop
 *
 */
@Entity
@Table(name = "goods")
public class Goods implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private int goods_id;
	private String goods_name;
	private int goods_belong;
	private double goods_price;
	private int goods_num;
	
	public Goods(){
		super();
	}
	
	@Id
	public int getId(){
		return goods_id;
	}
	
	public void setId(int goods_id){
		this.goods_id = goods_id;
	}
	
	public String getName(){
		return goods_name;
	}
	
	public void setName(String goods_name){
		this.goods_name = goods_name;
	}
	
	public int getBelong(){
		return goods_belong;
	}
	
	public void setBelong(int goods_belong){
		this.goods_belong = goods_belong;
	}
	
	public double getPrice(){
		return goods_price;
	}
	
	public void setPrice(double goods_price){
		this.goods_price = goods_price;
	}
	
	public int getNum(){
		return goods_num;
	}
	
	public void setNum(int goods_num){
		this.goods_num = goods_num;
	}
}
